//
//  HotLiveTableViewCell.m
//  Bread-Live
//
//  Created by ios on 2017/3/14.
//  Copyright © 2017年 Chris. All rights reserved.
//

#import "HotLiveTableViewCell.h"
#import "HotLiveView.h"

@interface HotLiveTableViewCell ()
@property(nonatomic,strong) HotLiveView *hotLiveView;

@end

@implementation HotLiveTableViewCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _hotLiveView   = [[HotLiveView alloc] initWithFrame:CGRectMake(10, 10, kWidth-20, 150)];
        
        
        [self.contentView addSubview:_hotLiveView];
        
    }
    return self;
}

-(void)setModel:(HotLiveModel *)model{
    
    [_hotLiveView initWithBackgroundImageUrl:model.bgUrl descritionText:model.title liveType:model.type liveTime:model.time];
    
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
